package per.kongtouxu.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import per.kongtouxu.domain.pojo.User;

import java.util.List;

@Repository
public interface UserDao {
    //根据账号密码查询User
    public User findUserByUP(@Param("account") String account,@Param("password") String password);
    //保存用户
    public int saveUser(@Param("user") User user);
    //根据账户查询User
    public User findUserByAccount(@Param("account") String account);
    //根据ID查询user
    public User findUserById(@Param("userId") Integer userId);
    //增加积分
    public void updateScoreByUserId(@Param("userId") Integer userId,@Param("userScore") Integer userScore);

}
